package com.hqyj.javaSpringCloudTest.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.entity.common.Result;
import com.hqyj.entity.common.SearchBean;
import com.hqyj.entity.test.City;

import java.util.List;

/**
 * @author ：Cwd
 * @date ：2021/8/19 10:39
 */

public interface CityService {

    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object> deleteCityByCityId(int cityId);

    City selectCityById(int cityId);

    List<City> getCitiesByCountryId(int countryId);

    PageInfo<City> getCitiesBySearchBean(SearchBean searchBean);

    Result<Object> insertCities(List<City> cities);
}
